﻿using GrayParrot.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GrayParrot.Communications.Configuration
{
    public static class CommunicationsSettingsExtension
    {
        /// <summary>
        /// Gets the communications settings.
        /// </summary>
        /// <param name="value">The value.</param>
        /// <param name="key">The key.</param>
        /// <returns></returns>
        public static CommunicationsSettings GetCommunicationsSettings(this IConfigurationManagerHelper value)
        {
            CommunicationsSettings retValue = null;

            retValue = CommunicationsSettings.GetConfiguration(@"GrayParrotGroup/CommunicationsSettings");

            return retValue;
        }

    }
}
